package org.feifei.order.service;

import org.feifei.basic.service.BaseService;
import org.feifei.basic.util.PageList;
import org.feifei.order.domain.ProductOrder;
import org.feifei.order.domain.ProductOrderDetail;
import org.feifei.order.query.ProductOrderQuery;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * 服务的Service 层
 */
public interface ProductOrderDetailService extends BaseService<ProductOrderDetail> {

    /**
     * 如果用户支付超时，自动关闭订单，即修改订单的状态为-1
     * @param oid
     */
    void cancelOrder(long oid);

    /**
     * 根据orderId获取订单详情表
     * @param productOrderId
     * @return
     */
    ProductOrderDetail getByOrderId(Long productOrderId);

}
